package com.example.demo.service.impl;

import com.example.demo.entity.Order;
import com.example.demo.entity.Order1;
import com.example.demo.entity.Order2;
import com.example.demo.entity.Order3;
import com.example.demo.mapper.OrderMapper;
import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void insertOrder(Order order) {
        orderMapper.insertOrder(order);
    }

    @Override
    public List<Order> selectOrder(String id) {
        return orderMapper.selectOrder(id);
    }

    @Override
    public List<Order> selectO() {
        return orderMapper.selectO();
    }

    @Override
    public void deleteOrder(String id) {
        orderMapper.deleteOrder(id);
    }

    @Override
    public Map<String, String> statistics() {
        return orderMapper.statistics();
    }

    @Override
    public List<Order3> statistics1() {
        return orderMapper.statistics1();
    }

    @Override
    public List<Order1> selectOrder2() {
        return orderMapper.selectOrder2();
    }

    @Override
    public List<Order1> selectOrder3(String name) {
        return orderMapper.selectOrder3(name);
    }

    @Override
    public Map<String, String> analysis() {
        return orderMapper.analysis();
    }

    @Override
    public List<Order2> analysis1() {
        return orderMapper.analysis1();
    }

    @Override
    public List<Order1> selectOrder4(String id) {
        return orderMapper.selectOrder4(id);
    }
}
